//获取时间
let getTime=function() {
    let date = new Date();
    let month = ('0' + (date.getMonth() + 1)).slice(-2);   //月
    let day = ('0' + date.getDate()).slice(-2);     //日
    let hour = ('0' + date.getHours()).slice(-2);     //时
    let minutes = ('0' + date.getMinutes()).slice(-2);     //分
    let seconds = ('0' + date.getSeconds()).slice(-2);     //秒
    return  date.getFullYear() + "-" + month + "-" + day + " " + hour + ":" + minutes + ":" + seconds;
};

export default getTime;

